import request from '@/common/utils/request'

export function getResourceList() {
  return request({
    url: 'resource/list',
    method: 'post'
  })
}

export function addResource(data) {
  return request({
    url: 'resource/add',
    method: 'post',
    data
  })
}

export function updateResource(data) {
  return request({
    url: 'resource/update',
    method: 'post',
    data
  })
}

export function deleteResource(data) {
  return request({
    url: 'resource/delete',
    method: 'post',
    data
  })
}